const ipcRenderer = require('electron').ipcRenderer;
//console.log(ipcRenderer.sendSync('synchronous-message', 'ping')); // prints "pong"
ipcRenderer.on('asynchronous-reply', function(event, arg) {
console.log(arg); // prints "pong"
});
var bigstatus = false;
$('.btn_max').click(function  () {
	if (!bigstatus) {
		ipcRenderer.send('maxwind', 'ping');
		console.log('最大化');
		bigstatus = true;
	} else{
		ipcRenderer.send('unmaxwind', 'ping');
		console.log('取消最大化');
		bigstatus = false;
	}
})
$('.btn_mini').click(function  () {
	ipcRenderer.send('minwind', 'ping');
	console.log('最小化')
})
   